package com.powernode.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.powernode.model.ProdEs;

/**
 * 内容:
 * 作者: cy
 */
public interface SearchService {


    Page<ProdEs> searchProdEsByTagId(Long tagId, Integer size, Integer current);


    /**
     * 根据分类id检索商品
     *
     * @param cateGoryId
     * @param size
     * @param current
     * @return
     */
    Page<ProdEs> searchProdByCategoryId(Long cateGoryId, Integer size, Integer current);

    /**
     * 根据关键字检索商品
     *
     * @param prodName
     * @param size
     * @param current
     * @param sort
     * @return
     */
    Page<ProdEs> searchProdByKeywords(String prodName, Integer size, Integer current, Integer sort);
}
